/**
 * Copyright 2008-2009. Chongqing Communications Industry Services Co.,Ltd Information Technology Branch. All rights
 * reserved. <a>http://www.cqcis.com</a>
 */
package com.cqcis.uip.base.framework.base.impl;

import com.cqcis.uip.base.framework.base.AbstractCommonSupport;
import com.cqcis.uip.base.framework.common.Role;
import com.cqcis.uip.base.framework.core.ServiceRole;
import com.cqcis.uip.base.framework.core.ServiceRoleIgnore;
import com.cqcis.uip.base.framework.handlers.CommonService;

/**
 * @author huangmy
 * @date 2008-6-18
 */
@ServiceRoleIgnore
public class DefaultCommoner extends AbstractCommonSupport {
	private static final long serialVersionUID = 1L;
	private CommonService commonService;
	private int threadNumberSchedule;
	
	@Override
	protected CommonService getCommonService() {		
		return this.commonService;
	}
	
	public Role getRole() {		
		return Role.COMMON;
	}

	@Override
	protected int getThreadNumberSchedule() {		
		return this.threadNumberSchedule;
	}

	@ServiceRole(Role.COMMON)
	public void setCommonService(CommonService commonService) {
		this.commonService = commonService;
	}

	public void setThreadNumberSchedule(int threadNumberSchedule) {
		this.threadNumberSchedule = threadNumberSchedule;
	}
}
